﻿using AnesSystem.Models;
using AnesSystem.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.ViewModels.Configuration.DataGrid
{
    class ConfigDrugReasonsDataGridViewModel :BaseViewModel<ConfigDrugReasonsDataGridViewModel>
    {
        #region Variables

        private ObservableCollection<ConfigDrugReasonsModel> _configDrugReasonsModel = new ObservableCollection<ConfigDrugReasonsModel>();

        #endregion

        #region Constructor

        public ConfigDrugReasonsDataGridViewModel()
        {
            initConfigDrugReasonsModel();
        }

        #endregion

        #region Properties

        public ObservableCollection<ConfigDrugReasonsModel> ConfigDrugReasonsModel
        {
            get
            {
                return _configDrugReasonsModel;
            }

            set
            {
                _configDrugReasonsModel = value;
                RaisePropertyChanged("ConfigDrugReasonsModel");
            }
        }

        #endregion

        #region Event

        #endregion

        #region Private Methods
        private void initConfigDrugReasonsModel()
        {
            IEnumerable<ConfigDrugReasonsModel> list = ConfigDrugReasonsModelService.Instance.FindAll();
            foreach (var item in list)
            {
                _configDrugReasonsModel.Add(item);
              
            }
        }

      
        #endregion

        #region Public/Protected Methods


        #endregion

        #region EventHandlers

        #endregion

        #region Command

        #region ChangeDoctorCommand

        #endregion

        #region OpenPopupCommand

        #endregion
        #endregion
    }
}
